﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.Models
{
	[CollectionDataContract(IsReference=true, ItemName="Name", KeyName="Key", ValueName="Value" ) ]
	public class SerializableNameValueCollection : System.Collections.Specialized.NameValueCollection
	{
		public void Add(string keyvalue)
		{
			// For WCF Serialization
			var parts = keyvalue.Split(',');
			base.BaseAdd(parts[0], parts[1]);
		}
	}
}
